package com.qiandw.enterprise.credit.common

import scala.beans.BeanProperty

/**
  * Created by Draven on 2018/7/10.
  * Email:hjx@qiandw.com
  */
class SysResp {

  @BeanProperty
  var code: Int = _

  @BeanProperty
  var msg: String = _

  @BeanProperty
  var errDetail: String = _
}

object SysResp {

  def apply(result: (Int, String, String)): SysResp = {
    val sysResp = new SysResp()
    sysResp.code = result._1
    sysResp.msg = result._2
    sysResp.errDetail = result._3
    sysResp
  }
}